﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="testPre.WebUserControl.Login" %>
<style type="text/css">
    .style1
    {
        width: 39%;
    }
    .style2
    {
    }
    .style3
    {
    }
</style>
<asp:Panel ID="pnlLogin" runat="server">
    <table class="style1">
        <tr>
            <td colspan="2" style="background-color: #6699FF">
                Login</td>
        </tr>
        <tr>
            <td class="style3">
                Username</td>
            <td>
                <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Password</td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" 
                TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" class="style2" colspan="1">
                <asp:Button ID="btnLogin" runat="server" 
                onclick="btnLogin_Click" Text="Login" />
            </td>
            <td align="center" class="style2">
                <asp:Button ID="btnSignup" runat="server" 
                onclick="btnSignup_Click" Text="SignUp" />
            </td>
        </tr>
        <tr>
            <td align="center" class="style2" colspan="2">
                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="pnlLogout" runat="server" Visible="False">
    <table class="style1">
        <tr>
            <td style="background-color: #6699FF">
                Hello
                <asp:Label ID="lblUser" runat="server" ForeColor="#FFFFCC"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:HyperLink NavigateUrl="" ID="HyperLink1" runat="server">Click choi</asp:HyperLink></td>
        </tr>
        <tr>
            <td align="center" class="style2">
                <asp:Button ID="btnLogout" runat="server" 
                onclick="btnLogout_Click" Text="Logout" />
            </td>
        </tr>
    </table>
</asp:Panel>
